package bsuir.magistrate.projects;

import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SignalApp implements WindowListener {

	private static final Logger log = LoggerFactory.getLogger(SignalApp.class);

	public SignalApp() {
		// JFrame mainFrame = new MainFrame();
		//
		// Dimension frameSize = mainFrame.getPreferredSize();
		// Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
		//
		// int x = (int) (screen.getWidth() / 2 - frameSize.getWidth() / 2);
		// int y = (int) (screen.getHeight() / 2 - frameSize.getHeight() / 2);
		//
		// mainFrame.setLocation(x, y);
		//
		// mainFrame.pack();
		// mainFrame.setVisible(true);
		//
		// mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		// mainFrame.addWindowListener(this);
	}

	public static void main(String[] args) {
		SignalApp app = new SignalApp();
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		log.info("==============Starting Application=================");
	}

	@Override
	public void windowOpened(WindowEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void windowClosing(WindowEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void windowClosed(WindowEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void windowIconified(WindowEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void windowDeiconified(WindowEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void windowActivated(WindowEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void windowDeactivated(WindowEvent e) {
		// TODO Auto-generated method stub

	}

}
